package gupao.concurrency.lock;

public
 class SynchronizedAssembly {
    private final Object obj = new Object();
    public synchronized
    void syncMethod(){
        System.out.println(1);
    }
    public synchronized
    static void syncStaticMethod(){
        System.out.println(2);
    }
    public void syncBlock(){
        synchronized (obj){
            System.out.println(3);
        }
    }
 }
